package com.scorpio.auth.controller;


import com.scorpio.auth.service.IJobService;
import com.scorpio.tools.api.R;
import com.scorpio.tools.generator.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author autoCode
 * @since 2020-01-13
 */
@RestController
@RequestMapping("/auth/job")
public class JobController extends BaseController {

    @Autowired
    private IJobService iJobService;

    @GetMapping("/list")
    public R list() {
        return R.data(iJobService.jobList());
    }

}
